package com.yeild.libs.rfid.android

import android.content.Context
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel

class MethodCallHandlerImpl(private val context: Context) : MethodChannel.MethodCallHandler {
    fun teardown() {}

    override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
        when (call.method) {
            "getPlatformVersion" -> result.success(getPlatformVersion())
            else -> result.notImplemented()
        }
    }

  fun getPlatformVersion(): String? {
    return "Android ${android.os.Build.VERSION.RELEASE}"
  }
}